import { App, createApp } from 'vue'
import rootApp from './App.vue'
import router from '@/router/index'
import store from './store/index'
import {defineApp , obj} from './global/index'
import './service/axios_demo'
import 'normalize.css'
import './assets/css/index.less'
import {setupStore} from './store/index'
//全局引入
// import ElementPlus from 'element-plus'
// import 'element-plus/dist/index.css'
const app:App =  createApp(rootApp)

// defineApp(app)
//用插件的形式
app.use(obj)
//动态路由的注册要放在路由之前 这样在匹配路由时才正确
setupStore()
app.use(router)
app.use(store)
app.mount('#app')
